<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">  
  <title>#{title}</title>
  <script data-init="js">window._init = '#{initJson}';</script>
  <!-- <script src="https://webapi.amap.com/maps?v=1.3&key=34a87903ee2dff36f84744786f7e8c35"></script> -->
  <script type="text/javascript">
    window._AMapSecurityConfig = {
    serviceHost:'https://cloud.shb.ltd/_AMapService',   
        // 例如 ：serviceHost:'http://1.1.1.1:80/_AMapService',
    }
  </script>
  <script src="https://webapi.amap.com/loader.js"></script>
  <script type="text/javascript" >
      let __initAmap = () => {
        return new Promise((resolve, reject) => {
          AMapLoader.load({
            plugins: ['AMap.ToolBar', 'AMap.Driving', 'AMap.PlaceSearch', 'AMap.Geocoder', 'AMap.Geolocation'],
            "key": '811588be3c76d165ff1b16c738065a7b', // 申请好的Web端开发者Key，首次调用 load 时必填
            "version": "1.4.15",   // 指定要加载的 JSAPI 的版本，缺省时默认为 1.4.15
            "AMapUI": {             // 是否加载 AMapUI，缺省不加载
                "version": '1.0',   // AMapUI 版本
                "plugins":['geo/DistrictExplorer'],       // 需要加载的 AMapUI ui插件
            },
          })
            .then(AMap => {
              resolve()
              console.log('*****AMapLoader success*****', AMap);
            })
            .catch(e => {
              reject()
              console.error('*****AMapLoader error*****', e); //加载错误提示
            });
        });
      };
      __initAmap();
  </script>
  <!-- <script src="https://webapi.amap.com/ui/1.0/main.js?v=1.0.11"></script> -->
  <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
  <script type="text/javascript" src="https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js"></script>
</head>
<body>
  <div id="app"></div>
</body>
</html>